﻿using MRSite.Common.Dependency;
using MRSite.Common.Web;
using MRSite.EntityDto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MRSite.WebForms
{
    public partial class _Default : Page
    {

        [Inject]
        public IAgentLevelCache AgentLevelCache { get; set; }

        [Inject]
        public IAgentUserCache UserCache { get; set; }


        protected void Page_Load(object sender, EventArgs e)
        {
            var item = AgentLevelCache.Get(1);
            this.Label1.Text = item.id.ToString();
            this.Label2.Text = item.title;
            var user = UserCache.Get(1);

        }
    }
}